User Identification in Events
How to Cross-Reference Information to Identify the User
In many operational scenarios, identifying the user responsible for an event is essential for analysis, contextual actions, and auditing. Below, we list possible approaches to perform this identification based on secure technical practices compatible with privacy guidelines.
1 - Using remote_id:
This function expects a String parameter that represents the remote id associated with the device. This identifier is a customizable value you can use to manage or label events for a specific user or context.
We strongly recommend not using sensitive information in the remote_id. Instead, use unique identifiers that are properly encrypted or obfuscated. For example, using the user's session-id is a safer approach that helps ensure security and privacy when identifying devices.
Swift Implementation - SwiftUI
import SwiftUI
import GroupLink
@main
struct SwiftUIApp: App {
// ...
var body: some Scene {
WindowGroup {
ContentView()
.onAppear {
GroupLinkSDK.setRemoteId("YOUR_REMOTE_ID")
}
}
}
}
Objective-C Implementation
#import "ViewController.h"
@import GroupLink;
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// ...
[GroupLinkSDK setRemoteId:@"YOUR_REMOTE_ID"];
// ...
}
@end